package com.medical.seckill.feign;

import com.medical.common.utils.R;
import com.medical.seckill.to.SessionTo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@FeignClient("medical-goods")
public interface GoodsClient {

    @GetMapping("goods/goodsseckillrelation/session2dayGoods")
    R getSession2daysGoodsId();
    @RequestMapping("goods/commodity/echo/{id}")
    R echo(@PathVariable("id")Integer id);
    @RequestMapping("goods/seckillsession/listall")
    R listAll(@RequestParam("ids") List<String> ids);
}
